package com.kevin.minio.util;

import com.kevin.minio.config.MinioConfiguration;

/**
 * @author Kevin Liu
 * @date 2020/6/9 7:32 下午
 */
public class MainApplication {

    public static void main(String[] args) {
        MinioConfiguration configuration = MinioConfiguration.builder()
                .clientUrl("http://fs.kevinproject.cn")
                .username("minioadmin")
                .password("minioadmin")
                .build();
        FileUploadClientFactory fileUploadClientFactory = FileUploadClientFactoryBuilder.build(configuration);
        FileUploadClient fileUploadClient = fileUploadClientFactory.openFileUploadClient("markdown");
        fileUploadClient.listObjects().forEach(System.out::println);
        //fileUploadClient.putObject("test.png","/Users/kevin/Pictures/icon.png");
    }
}
